package tech.runchen.gz5055.oms.modules.system.service;

import tech.runchen.gz5055.oms.modules.system.entity.OrderDetailEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单明细表 服务类
 * </p>
 *
 * @author zzj
 * @since 2023-10-10
 */
public interface IOrderDetailService extends IService<OrderDetailEntity> {

    /**
     * 批量保存订单详情信息
     *
     * @param orderId
     * @param orderDetailList
     */
    void saveOrderDetailBatch(Long orderId, List<OrderDetailEntity> orderDetailList);

    /**
     * 根据订单ID查询订单详情
     *
     * @param orderId
     * @return
     */
    List<OrderDetailEntity> queryOrderDetailList(Long orderId);

    /**
     * 根据订单删除订单详情
     *
     * @param orderId
     */
    void deleteByOrderIdBatch(Long orderId);
}
